<template>
    <fieldset>
        <legend>child2组件</legend>
        <h1>Child2组件</h1>
        <button @click="send2">点击传递给child</button>
    </fieldset>
</template>

<script>
    export default {
        data(){
            return {
                j:"蛇皮象拔蚌"
            }
        },
        methods: {
            send2(){
                this.$bus.$emit('get2',this.j)
            }
        }

    }
</script>

<style scoped>
    h1 {
        color: aqua;
    }
</style>

